<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>轮播图插件</title>
		<link rel="stylesheet" type="text/css" href="jquery.slider.css"/>
	</head>
	<body>
		<div class="container">
			<div id="slider" class="jquery-slider">
				<div class="slider-img">
					<a><img class="slider-image" src="img/demo1.jpg"/></a>
					<a><img class="slider-image" src="img/demo2.jpg"/></a>
					<a><img class="slider-image" src="img/demo3.jpg"/></a>
					<a><img class="slider-image" src="img/demo4.jpg"/></a>
					<a><img class="slider-image" src="img/demo5.jpg"/></a>
					<a><img class="slider-image" src="img/demo6.jpg"/></a>
				</div>
				<div id="prev" class="slider-btn"></div>
				<div id="next" class="slider-btn"></div>
			</div>
			
		</div>
		
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script src="jquery.slider.js"></script>
		<script type="text/javascript">
			$("#slider").Slider({
				width:1000,
				height:330,
				autoPlay:true,
				indexIcon:true,
				timer:2,
				init:function(){
					alert(2);
				}
			});
		</script>
	</body>
</html>
